<template>
    <div class="box">
      <h1>祖父组件</h1>
      <child></child>
    </div>
</template>

<script>
import Child from '@/components/Child.vue'
export default {
  components:{
    Child
  },
  provide:{
    akey:'我是爷爷'
  }

}
</script>

<style>
  .box{
    width: 500px;
    height: 400px;
    background:red;
  }
</style>